<style type="text/css">
	.sub_cl {
		width: 223px;
		float: left;
		text-align: left;
		margin-right: 15px;
		margin-left: 15px;
		margin-bottom: 10px;
		height: 243px;
	}
	.sub_cl p {
		text-align: center;
		margin-bottom: 5px;
	}
	.img_std_admin {
	    display: table;
	    height: 162px;
	    padding: 5px 0;
	    width: 218px;
		border: 1px solid #e6e6e6;
	}
	.img_std_admin:hover {
		border: 1px solid #549ADF;
	}
	.img_std_admin div {
	    display: table-cell;
	    vertical-align: middle;
		text-align: center; 
	}
	.sp_indexsub_img {
	    border: medium none;
	    height: auto !important;
	    max-height: 150px;
	    max-width: 200px;
	    min-height: 110px;
	    min-width: 150px;
	    width: auto !important;
	}
	.page_footer {
		margin-top: 10px;
		margin-bottom: 10px;
	}
	.page_footer_left {
		float: left;
		text-align: left;
	}
	.page_footer_right {
		float: right;
		text-align: right;
		margin-right: 15px;
	}
</style>

<div class="content_head">
	<?php echo $title; ?>
</div>

<div class="content_ct" style="padding: 10px; padding-top: 20px;">   
	<div style="margin-bottom:  5px;">
		<a style="text-decoration: underline; color: #000;" href="<?php echo base_url() ?>back_end/product_hot/add">Thêm sản phẩm vào mục sản phẩm Hot</a> 
	</div>
	<?php foreach ($product_all as $product_all_arr) { ?>
	  <div class="sub_cl">
	  	<p>
	  		<?php
				if ($product_all_arr['image'] == '') {
			?>
			<div class="img_std_admin" style="text-align: center;">
				<div style="text-align: center;">
					<img src="<?php echo base_url();?>images/img_product/noimg.jpg"  class="sp_indexsub_img" />
				</div>	
			</div>	
			<?php 		
				} else { 
			?>
			<div class="img_std_admin" style="text-align: center;">
				<div style="text-align: center;">
					<img src="<?php echo base_url();?>images/img_product/<?php echo $product_all_arr['image']; ?>"  class="sp_indexsub_img" />
				</div>	
			</div>
			<?php
				} 
			?>
	  	</p>
	  	<p>
	  		<a href="#" style="color: #333;"><?php echo $product_all_arr['name']; ?></a>
	  	</p>
	  	<p>
	  		<a style="text-decoration: underline;" href="<?php echo base_url()?>back_end/product_hot/delete/<?php  echo $product_all_arr['id']; ?>">Delete</a>
	  	</p>
	  </div>
  	<?php } ?>
  	
  	<div style="clear: both;"></div>
  	
  	<div class="page_footer">
  		<div class="page_footer_left">
  			&nbsp;	
  		</div>
  		<div class="page_footer_right content_ct_show_paging">
  			<span style="color: #888;">Tổng số:</span>
			<span style="color: #444;">(<?php if (!empty($product_all)) { echo count($product_all); } ?>)</span>
  		</div>
  		<div style="clear: both;"></div>
  	</div>	
</div>
